include_directories(
  ${GL_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}
  ${PROJECT_SOURCE_DIR}/include/renderers/sw
)

add_library(
  mirgraphics OBJECT

  default_configuration.cpp
  default_display_configuration_policy.cpp
  gl_extensions_base.cpp
  software_cursor.cpp
  ${PROJECT_SOURCE_DIR}/src/include/server/mir/graphics/display_configuration_observer.h
  display_configuration_observer_multiplexer.cpp
  display_configuration_observer_multiplexer.h
  platform_probe.cpp
  platform_probe.h
)

target_link_libraries(mirgraphics
  PUBLIC
    mirplatform
    mircommon
    mircore
)
